Skip to content
This repository was archived by the owner on Jul 15, 2022. It is now read-only.

state manager#66

Open
kousthubraja wants to merge 1 commit intosc25janfrom
state-manager
Open

state manager#66
kousthubraja wants to merge 1 commit intosc25janfrom
state-manager

Conversation

@kousthubraja
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread app/codes/statemanager.py
tcodenewflag = True
existingflag = False
if 'tokencode' not in token or tcodenewflag: # new tokencode needs to be created
hs = hashlib.blake2b(digest_size=20)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a uuid creator here if txcode is None
if not txcode:
txcode = uuid.uuid()

Comment thread app/codes/statemanager.py
VALUES (?, ?, ?)''', (wallet_address, token_code, balance))


def update_trust_score(cur, personid1, personid2, new_score, tstamp):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i presume this is unique even though timestamp changes? on account of the primary key (person1-person2) being repeated?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants